package com.study.cloud.apilog.response;

import com.study.cloud.apilog.GatewayApiLog;
import org.springframework.cloud.gateway.filter.GatewayFilterChain;
import org.springframework.http.MediaType;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

/**
 * @Date 2022/5/17
 * @Author Cliff
 * desc
 */
public interface ResponseBodyService {

    boolean isSupport(MediaType mediaType);

    Mono<Void> handler(ServerWebExchange exchange, GatewayFilterChain chain, GatewayApiLog gatewayLog,Object request);
}
